#ifndef DBCONFIG_H
#define DBCONFIG_H

#include <QDialog>
#include <QMessageBox>
#include <QtGui>
#include <QString>
#include <QSettings>
#include <QtSql>
#include "base.h"
#include "ui_dbconfig.h"

namespace Ui {
	class dbconfigForm;
}

class dbconfigForm : public QDialog
{
	Q_OBJECT

public:
	explicit dbconfigForm(QWidget *parent = 0);
	~dbconfigForm();

private:
	Ui::dbconfigDialog *ui;

	void loadConfig();
	void saveConfig();

private	slots:
	void showEvent(QShowEvent *event);
	void closeEvent(QCloseEvent *event);
	void on_btn_exit_clicked();
	void on_btn_ok_clicked();
};


#endif//!DBCONFIG_H
